package com.example.filesftp.config;


import lombok.Data;
import org.springframework.boot.context.properties.ConfigurationProperties;
import org.springframework.stereotype.Component;

import java.util.List;


@Data
@Component
@ConfigurationProperties(prefix = "nybgftp.config")
public class NybgftpConfig {
    private Server server;
    private List<FileInfo> files;
    private Server ftpServer;


    @Data
    public static class Server {
        private String ip;
        private int port;
        private String username;
        private String password;
        private int timeout;

    }

    @Data
    public static class FileInfo {
        private String name;
        private String remotePath;
        private String localPath;
        private String uploadFtpPath;
    }



}
